package com.chapter14;

public class Test {
    public static void main(String[] args) {
        final ConcretSubject concretSubject = new ConcretSubject();
        concretSubject.Attach(new ConcretObserver(concretSubject,"X"));
        concretSubject.Attach(new ConcretObserver(concretSubject,"Y"));
        concretSubject.Attach(new ConcretObserver(concretSubject,"Z"));
        concretSubject.setSubjectState("ABC");
        concretSubject.notifyObservers();
    }
}
